.PHONY:all
all: memory1 memory2

memory1:memory1.cc
	g++ -o $@ $^

memory2:memory2.cc
	g++ -o $@ $^

.PHONY:clean
clean:
	rm -f memory1 memory2